package com.limeng.domain;

import java.util.List;

import com.limeng.dao.impl.DAOAddressImpl;
import com.limeng.exceptions.DAOException;
import com.limeng.model.Address;
import com.limeng.model.bean.AddressB;



public abstract class DAOAddress {
  
  private static DAOAddress instance;
  public abstract Address loadAddress(Long id) throws DAOException;
  public abstract Address saveAddress(Address address) throws DAOException;
  public abstract List<Address> getAllAddress() throws DAOException;
  
  public abstract List<AddressB> getAllAddressB() throws DAOException;




  
  public static DAOAddress getInstance()
  {
	if(instance==null)
	{
		instance=new DAOAddressImpl();
	}
	return instance;
  }
	  

}
